package io.renren.modules.wms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.datasource.annotation.DataSource;
import io.renren.modules.wms.entity.WmsDataEntity;
import io.renren.modules.wms.vo.WmsImport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-11-07 09:23:07
 */
@Mapper
public interface WmsDataDao extends BaseMapper<WmsDataEntity> {

    @DataSource("gangyu")
    List<WmsImport> selectAllGangyuStock();

    @DataSource("fule")
    List<WmsImport> selectAllFuleStock();

    @DataSource("jde")
    List<WmsImport> selectAllJdeStock();

    @DataSource("jde")
    List<WmsImport> selectOutJdeStock(@Param("date") String date);

    @DataSource("jde")
    List<WmsImport> selectOutWmsStock(@Param("date") String date);

    @DataSource("jde")
    List<WmsImport> selectKWFStock();

    @DataSource("wms")
    void batchInsert(List<WmsDataEntity> wmsDataEntities);

}
